<?php

require_once 'vendor/autoload.php'; // 引入自动加载文件
use think\App;
$app = App::getInstance();
$app->initialize();

use app\http\Worker;
use app\http\SymbolWorker;

$worker1 = new SymbolWorker();
$worker1->count = 1; // 设置Worker1的进程数

$worker2 = new Worker();
$worker2->count = 1; // 设置Worker2的进程数

$worker1->start();
$worker2->start();